package ooday01homework;

public class Car {
    //Car类属性
    String brand;
    String color;
    int price;
    //无参构造
    Car(){

    }
    //有参构造
    Car(String brand,String color,int price){
        this.brand=brand;
        this.color=color;
        this.price=price;
    }
    //方法
    void start(){
        System.out.println(brand+"品牌的"+color+"的"+price+"万元的车启动了...");
    }
    void run(){
        System.out.println(brand+"品牌的"+color+"的"+price+"万元的车行驶中...");
    }
    void stop(){
        System.out.println(brand+"品牌的"+color+"的"+price+"万元的车停止了...");
    }
}
